home *** CD-ROM | disk | FTP | other *** search
/ Reverse Code Engineering RCE CD +sandman 2000 / ReverseCodeEngineeringRceCdsandman2000.iso / RCE / Tools / Win95 Secrets / SETUP.Z / PHYS32.C < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-19  |  572 b   |  26 lines

  1. //==================================
  2. // PHYS - Matt Pietrek 1995
  3. // FILE: PHYS32.C
  4. //==================================
  5. #include <windows.h>
  6.  
  7. BOOL _stdcall phystk_ThunkConnect32(PSTR, PSTR, HINSTANCE, DWORD);
  8.  
  9. INT WINAPI DllMain
  10. (
  11.     HANDLE    hInst,
  12.     ULONG    dwReason,
  13.     LPVOID    lpReserved
  14. )
  15. {
  16.     if (!(phystk_ThunkConnect32("PHYS16.DLL",   // Name of 16-bit DLL       
  17.                                 "PHYS32.DLL",   // Name of 32-bit DLL
  18.                                 hInst,
  19.                                 dwReason)))
  20.     {
  21.         MessageBox(0, "phystk_ThunkConnect32 failed", 0, MB_OK);
  22.         return FALSE;
  23.     }
  24.     return 1;
  25. }
  26.